﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using JEdwonTune.Lib.Reflect;
using System.Xml;

namespace JEdwonTune.Tools {
    public partial class FrmViewBizAssembly : FrmMDIChild {
        public FrmViewBizAssembly() {
            InitializeComponent();
        }
        private XmlDocument _Doc;
        public XmlDocument Doc {
            set { _Doc = null; }
            get { return _Doc; }
        }

        private void btnCancel_Click(object sender, EventArgs e) {
            this.Close();
        }

        private void tsbtnOpen_Click(object sender, EventArgs e) {
            this.openFileDialog1.Filter = "程序集文件(*.dll)|*.dll";
            DialogResult dr = this.openFileDialog1.ShowDialog();
            if (dr == DialogResult.OK) {
                try {
                    this.rtxtInfo.Text = RefHelper.ParseAssemblyInfo(this.openFileDialog1.FileName);
                } catch (Exception ex) {
                    MessageBox.Show(ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }

        private void toolStripButton1_Click(object sender, EventArgs e) {
            this.Close();
        }
    }
}
